Main Page | Class List | Class Members

BustaGraphicsSprites Class Reference

contains methods for loading and returning sprites for BustaGraphics More...

#include <BustaGraphicsSprites.h>

List of all members.

Public Member Functions

 BustaGraphicsSprites ()
 Loads all the sprites in the game.
SDL_Surface * getGameBackground ()
 Returns the sprite of the background.
SDL_Surface * getChalkboard ()
 Returns the sprite of the background.
SDL_Surface * getMainScreenLogo ()
 Returns the sprite of the main screen logo.
SDL_Surface * getConnectScrnStatusLight (CS_STATUS_LIGHT light_color)
 Returns the proper status light for the players in the connection screen.
SDL_Surface * getFoodSprite (BustaModelFoodPiece *food_piece)
 Returns the propper sprite for a food piece.
SDL_Surface * getSmallFoodSprite (BustaModelFoodPiece *food_piece)
 Returns a small sprite for a food piece for the customer's order.
SDL_Surface * getBMPFont (FONTS f)
 Returns a bitmap font used by Sfont.
SDL_Surface * getChefSprites (BustaModelCharacter chef, ANIM_CHEF_TYPES anim_type, int frame)
 Returns the right chef sprite.
SDL_Surface * getCustomerSprites (ANIM_CUSTOMER_STATES state, int customerPortrait)
 Returns the right chef sprite.
SDL_Surface * getChefPortraits (BustaModelCharacter chef)
 Returns the right chef portrait.
SDL_Surface * getCursorSprites ()
 returns a sprite for the cursor
SDL_Surface * getSwapCursorSprites ()
 returns a sprite for the swap cursor
SDL_Surface * getTipJarSprite (int percent_full)
 returns a sprite of the tip jar based on the percent fullness


Detailed Description

contains methods for loading and returning sprites for BustaGraphics


Member Function Documentation

SDL_Surface* BustaGraphicsSprites.getBMPFont FONTS  f  ) 
 

Returns a bitmap font used by Sfont.

Returns:
a surface for SFont

SDL_Surface * BustaGraphicsSprites::getChefPortraits BustaModelCharacter  chef  ) 
 

Returns the right chef portrait.

Parameters:
chef the chef
Returns:
sprite for the portrait

SDL_Surface * BustaGraphicsSprites::getChefSprites BustaModelCharacter  chef,
ANIM_CHEF_TYPES  anim_type,
int  frame
 

Returns the right chef sprite.

Parameters:
anim_type the type of animation
frame which frame of the animation
Returns:
sprite for the chef

SDL_Surface * BustaGraphicsSprites::getConnectScrnStatusLight CS_STATUS_LIGHT  light_color  ) 
 

Returns the proper status light for the players in the connection screen.

Parameters:
light_color which color? you have a choice between RED_LIGHT or GREEN_LIGHT
Returns:
the sprite for a status light, either red or green

SDL_Surface* BustaGraphicsSprites.getCursorSprites  ) 
 

returns a sprite for the cursor

Returns:
sprite for the cursor

SDL_Surface * BustaGraphicsSprites::getCustomerSprites ANIM_CUSTOMER_STATES  state,
int  customerPortrait
 

Returns the right chef sprite.

Parameters:
state pissed or content
customerPortrait which portrait to use
Returns:
sprite for the chef

SDL_Surface * BustaGraphicsSprites::getFoodSprite BustaModelFoodPiece *  food_piece  ) 
 

Returns the propper sprite for a food piece.

Parameters:
food_piece the food piece to get sprite for
Returns:
sprite for a food type

SDL_Surface * BustaGraphicsSprites::getSmallFoodSprite BustaModelFoodPiece *  food_piece  ) 
 

Returns a small sprite for a food piece for the customer's order.

Parameters:
food_piece the food piece to get sprite for
Returns:
sprite for a food type

SDL_Surface* BustaGraphicsSprites.getSwapCursorSprites  ) 
 

returns a sprite for the swap cursor

Returns:
sprite for the swap cursor

SDL_Surface * BustaGraphicsSprites::getTipJarSprite int  percent_full  ) 
 

returns a sprite of the tip jar based on the percent fullness

Parameters:
percent_full 100 for a full jar and 50 for a half-full jar
Returns:
sprite for tip jar


Generated on Sun Aug 14 22:24:56 2005 for BustaSandwich Graphics by  doxygen 1.4.2-20050421